package com.qd.common.panda.domain.entity.order;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 统计优惠金额
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
public class TotalPreferentialAmountDTO {
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;
    /**
     * 优惠显示
     */
    private String discountAmountDisplay;
    /**
     * 总金额
     */
    private BigDecimal orderAmount;
    /**
     * 总金额显示
     */
    private String orderAmountDisplay;

    public void freeData(){
        this.discountAmount = null;
        this.discountAmountDisplay = null;
        this.orderAmount = null;
        this.orderAmountDisplay = null;
    }
}
